<%-- 
    Document   : list
    Created on : 2015-2-09, 17:12
    Author     : zhoutianhuai
--%>
<%@page contentType="text/html; charset=UTF-8" session="false" %>
<%@include  file="/WEB-INF/jspf/import.jspf"%>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="pagerForm" name="searchForm" method="post">
        <input type="hidden" name="pageNum" value="${pager.pageNo}" />
        <input type="hidden" name="pageSize" value="${pager.pageSize}" />
        <div class="searchBar">
            <table class="searchContent">
                <tbody>
                    <tr>
                        <td colspan="2"><label>所属日期：</label>
                            <input type="text" value="${beginDate}" name="beginDate" datefmt="yyyy-MM-dd" class="date" readonly="true">
                                                                          至
                            <input type="text" value="${endDate}" name="endDate" datefmt="yyyy-MM-dd" class="date" readonly="true">
                        </td>
                        <td>
                           <div class="buttonActive"><div class="buttonContent"><button type="button" onclick="exportFile();">导出Excel</button></div></div>
                        </td>
                        <td>
                             <div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" style="width: 100%" layoutH="85">
        <thead>
            <tr>
                <th >所属日期</th>
                <th >登录用户总数 平均值:${avg.visitorCountAvg}</th>
                <th >发表主题帖总数 平均值:${avg.topicCountAvg}</th>
                <th >发表说说总数 平均值:${avg.commentCountAvg}</th>
                <th >说说评论总数 平均值:${avg.commentReplyCountAvg}</th>
                <th >点赞总数 平均值:${avg.praiseCountAvg}</th>
                <th >回帖总数 平均值:${avg.topicReplyCountAvg}</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach var="e" items="${pager.resultList}">
                <tr>
                    <td>${e.belongsDate}</td>
                    <td>${e.visitorCount}</td>
                    <td>${e.topicCount}</td>
                    <td>${e.commentCount}</td>
                    <td>${e.commentReplyCount}</td>
                    <td>${e.praiseCount}</td>
                    <td>${e.topicReplyCount}</td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共 ${pager.total} 条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.pageNo}"></div>
</div>
<script>
    var beginDate = "${beginDate}";
    var endDate = "${endDate}";
    function exportFile(){
        location.href="club/dailyGeneralSituationExport.do?beginDate="+beginDate+"&endDate="+endDate;
    }
</script>
